package com.yundasys.lab02springbootstudy.service.impl;

import com.yundasys.lab02springbootstudy.service.CalculateService;
import org.springframework.stereotype.Service;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/1/21 10:12 上午
 */
@Service("calculateService")
public class CalculateServiceImpl implements CalculateService {

    private String desc = "desc from class";

    @Override
    public int add(int a, int b) {
        return a+b;
    }

    @Override
    public String getServiceDesc() {
        return desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
